package com.share.types.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum ResponseCode {


    SUCCESS("0000", "成功"),
    UN_ERROR("0001", "未知失败"),
    ILLEGAL_PARAMETER("0002", "非法参数"),
    INDEX_DUP("0003","唯一索引冲突" ),
    STRATEGY_RULE_WEIGHT_IS_NULL("ERR_BIZ_001"," 业务异常：策略规则中rule_weight已适用但未配置"),
    UN_ASSEMBLED_STRATEGY_ARMORY("ERR_BIZ_002","抽奖策略未装配，使用armory进行装配"),
    ACTIVITY_STATE_ERROR("ERR_BIZ_003","活动未开启（非open状态）"),
    ACTIVITY_DATE_ERROR("ERR_BIZ_004","非活动日期内"),
    ACTIVITY_SKU_STOCK_ERROR("ERR_BIZ_005","活动库存不足"),
    ACCOUNT_QUOTA_ERROR("ERR_BIZ_006","账户总额度不足"),
    ACCOUNT_MONTH_QUOTA_ERROR("ERR_BIZ_007","账户月额度不足"),
    ACCOUNT_DAY_QUOTA_ERROR("ERR_BIZ_008","账户日额度不足"),
    ACTIVITY_USER_RAFFLE_ORDER_BEUSER_ERROR("ERR_BIZ_009","活动抽奖单已使用过,不可重复抽奖")
    ;

    private String code;
    private String info;

}
